import { View } from '@tarojs/components';
import React from 'react';
import { ImageUploader } from '@/components';
import platformSupport from '@/api/platform-support';

const IP = () => {
  const onChange = e => {
    let arr = e.split(',');
    console.log('arr', arr);
  };
  return (
    <View>
      <ImageUploader
        securitySignApi={platformSupport.uploads.securitySign}
        apiData={{ permission: 'PB' }}
        onChange={onChange}
        ossConfig={{
          bucketName: 'yryz-resources-qa',
          cdn: 'https://cdn-test.yryz2.com/',
          bucketNameS: 'yryz-resources-qa',
          cdnS: 'https://cdn-s-test.yryz2.com/'
        }}
      />
    </View>
  );
};
export default IP;
